<%@ page contentType="text/html;charset=gbk" %>
<%@ page import="java.sql.*"%>
<%@ page import="com.oa.database.*"%>
<%@ page import="com.oa.util.*"%>
<%@ include file="/share/login_info.jsp"%>
<%
try {
	String QXID = request.getParameter("QXID");
	if (QXID == null) {
		QXID = "0";
	}
	String QXMB = request.getParameter("QXMB");
	if (QXMB == null) {
		QXMB = "0";
	}

  	DataConn dataConn = new DataConn();
  	UpdateData updateData = new UpdateData(dataConn);

  	String sTable = "";
  	String sField = "";
  	String sCond  = "";
	sTable = "OA_DAQX";
	sField = "QXMB="+QXMB;
	sCond  = "QXID="+QXID;
	int iReturn = updateData.update(sTable, sField, sCond);
	//out.println("emUpdate="+updateData.getErrorMessage());

    String sHref = "";
    if ( iReturn ==0 ) {
        sHref = "popedom_list.jsp";
        out.println("<Script Language='javaScript'>");
        out.println("document.location.href=\""+sHref+"\"");
        out.println("</Script>");
    }
    else {
        sHref = "";
    }

    if (dataConn != null) {
        dataConn.close();
    }
}
catch(Exception e) {
	//out.println("e="+e);
}
%>
